Automattic\WooCommerce\Blocks\BlockTypes\ProductQuery B

Total Complexity 76
Dependencies 5
Dependents 0
Total lines 805
Lines of code 449
Logical lines of code 162
Comment lines 259
Methods 25
Properties 6

Methods 25

Method Rating Maintainability Complexity Lines of code
get_global_query()
S
53 7 24
get_stock_status_query()
S
53 6 25
get_filter_by_price_query()
S
52 5 28
merge_queries()
S
52 5 27
get_filter_by_attributes_query()
S
49 4 35
array_merge_recursive_replace_non_array_properties()
S
58 5 17
get_filter_by_rating_query()
S
51 4 28
get_queries_by_attributes()
S
59 5 13
update_rest_query()
S
60 5 11
get_product_visibility_query()
S
57 4 17
get_filter_by_stock_status_query()
S
54 3 24
update_query()
S
57 3 17
get_valid_query_vars()
S
51 2 30
build_query()
S
53 2 24
get_product_attributes_query()
S
54 2 23
get_filter_by_attributes_query_vars()
S
58 2 17
get_custom_orderby_query()
S
61 2 13
get_products_ids_by_attributes()
S
57 1 17
is_woocommerce_variation()
S
73 2 4
get_query_vars_from_filter_blocks()
S
59 1 15
extend_rest_query_allowed_params()
S
71 2 5
initialize()
S
62 1 12
set_query_vars()
S
65 1 10
get_queries_by_applied_filters()
S
67 1 8
get_on_sale_products_query()
S
74 1 5